package com.example.mystore.model;


import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;

public class OrderList {
    private Integer id;             // 订单项ID，自动增长列
    private Integer uid;            // 用户编号
    private BigInteger orderNo;        // 所属订单ID
    private Integer goodsId;        // 商品编号
    private String goodsName;       // 商品名称
    private String iconUrl;         // 商品主图
    private BigDecimal price;       // 商品单价
    private Integer quantity;       // 购买的商品数量
    private BigDecimal totalPrice;  // 订单项总价格
    private Date created;           // 创建时间
    private Date updated;           // 更新时间

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public BigInteger getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(BigInteger orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }
}
